<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        ????
        {{title}}
    </div>
</body>
<script src="http://unpkg.com/vue@next"></script>
<script>
    function useTitle(){
        const state = Vue.reactive({
            title:'realtitle'
        })
        return state
    }


    const app = Vue.createApp({
        data(){
            return{
                title:'test'
            }
        },
        setup(){
            const state = useTitle()
            return state
        },
        // render(){
        //     Vue.h('div',{ class: 'counter-display' }, [
        //         h('span', { class: 'counter-label' }, '恭喜你，你已经写了'),
        //         h('span', { class: 'counter-text' }, count.value),
        //         h('span', { class: 'counter-label' }, '斤代码！'),
        //     ])
        // }
    })

    app.mount('#app')
</script>
</html>